package com.mlz.mlzmall.ui.utils.vali;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

/**
 * 手机号验证
 * Created by xbin on 2015/7/23.
 */
public class PhoneValidate {
	// 判断手机格式是否正确
	public static final boolean isPhone(String mobiles) {
		Pattern p = Pattern
				.compile("^((13[0-9])|(15[^4,\\D])|(14[7])|(18[0-2,5-9]))\\d{8}$");
		Matcher m = p.matcher(mobiles);

		return m.matches();
	}

}
